package com.dyna.patterns.creation.factory.simplefactory;

public class SimpleFactory {

    public AbstractCar newCar(String type) {
        if ("Van".equals(type)) {
            return new VanCar();
        }else if ("mini".equals(type)) {
            return new MiniCar();
        }
        return null;
    }

}
